tmem: expose freeable memory
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 10 Aug 2009 12:27:54 +0000 (13:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 10 Aug 2009 12:27:54 +0000 (13:27 +0100)
commit81d70f1a53806178596e48a8f81f870a5f9c74e0
tree52943c0142ba3cb9eafc2362a6d9aaf3a1adb0c1
parent37541c41651ee9b29ffeda3870cb3ba704d7e756
tmem: expose freeable memory

Expose tmem "freeable" memory for use by management tools.

Management tools looking for a machine with available
memory often look at free_memory to determine if there
is enough physical memory to house a new or migrating
guest.  Since tmem absorbs much or all free memory,
and since "ephemeral" tmem memory can be synchronously
freed, management tools need more data -- not only how
much memory is "free" but also how much memory is
"freeable" by tmem if tmem is told (via an already
existing tmem hypercall) to relinquish freeable memory.
This patch provides that extra piece of data (in MB).

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
tools/python/xen/lowlevel/xc/xc.c
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendConstants.py
tools/python/xen/xend/XendNode.py
tools/python/xen/xend/server/XMLRPCServer.py
tools/python/xen/xm/main.py
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/public/tmem.h
xen/include/xen/tmem_xen.h